package com.leyou.personnel.controller;

import com.leyou.common.pojo.R;
import com.leyou.annotation.AuthorityForRCheck;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xhh
 * @describe 描述
 * @date 2022/7/27 11:44
 * @ClassName TestController
 */
@RestController
@RequestMapping("/testAop")
public class TestController {


    @RequestMapping("/method1")
    @AuthorityForRCheck(authority = "au002")
    public R method1(){
        return R.ok();
    }


    @RequestMapping("/method2")
    @AuthorityForRCheck(authority = "au003")
    public R method2(){
        return R.ok();
    }
}
